package cn.icatw.gulimall.product.dao;

import cn.icatw.gulimall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * spu信息
 *
 * @author icatw
 * @email 762188827@qq.com
 * @date 2022-02-21 13:01:13
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {
    /**
     *  当es上架之后 修改spu状态
     * @param spuId
     * @param code
     * @return void
     */
    void updateSpuStatus(@Param("spuId") Long spuId, @Param("code") int code);
}
